#include "EchoSession.h"

#include <boost/bind.hpp>

EchoSession::EchoSession(boost::asio::io_service& service) : NetSession(service)
{
}

EchoSession::~EchoSession()
{
}

bool EchoSession::ReadPacket()
{
    SendBuffer(recvBuf_.linearize(), recvBuf_.size());

    recvBuf_.rerase(recvBuf_.begin(), recvBuf_.end());    

	return true;
}

